﻿@model DoAnForum.Models.CreateTopicViewModel
@{
    ViewBag.Title = "CreateTopic";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="../../Scripts/jquery.tagsinput.min.js" type="text/javascript"></script>
<script src="../../Scripts/tags.js" type="text/javascript"></script>
@using (Html.BeginForm("CreateTopic", "Topic", FormMethod.Post, null))
{
    <div class="span9">
        <div class="editor-label">
            @Html.LabelFor(model => model.Category)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.Category, (IEnumerable<SelectListItem>)ViewBag.Category, "---Select Category---")
            @Html.ValidationMessageFor(model => model.Category)
        </div>
    </div>
    
    <div class="span9 topictitle">
        <div class="editor-label">
            @Html.LabelFor(model => model.TopicTitle)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.TopicTitle)
            @Html.ValidationMessageFor(model => model.TopicTitle)
        </div>
    </div>
    
    <div class="span9 topiccontent">
        <div class="editor-field editorholder">
            @Html.EditorFor(model => model.TopicContent)
            @Html.ValidationMessageFor(model => model.TopicContent)
        </div>
    </div>
    
    <div class="span9 editor-field">
        @Html.TextAreaFor(model => model.Tags, new { @class = "tagstextarea tags", title = "Topic.TagThisTopic" })
    </div>
    
    <div class="btnNewTopic">
        <input type="submit" value="Tạo chủ đề mới"  class="btn btn-success btn-large newTopic"/>
    </div>
}

